<template>
    <div>
        <a href="#" @click="M='MDao1'">香草冰淇淋</a> |
        <a href="#" @click="M='MDao2'">草莓冰淇淋</a> |
        <a href="#" @click="M='MDao3'">巧克力冰淇淋</a>
        <component :is="M"></component>
    </div>
</template>

<script>
import MDao1 from '../MDao/MDao1'
import MDao2 from '../MDao/MDao2'
import MDao3 from '../MDao/MDao3'
export default{
    components:{
        MDao1,
        MDao2,
        MDao3
    },
    data(){
        return{
            M:''
        }
    }

}
</script>